home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume8 / se / part07 < prev    next >
Encoding:
Internet Message Format  |  1987-01-25  |  35.4 KB

  1. Subject:  v08i007:  Georgia Tech 'se' Screen Editor
  2. Newsgroups: mod.sources
  3. Approved: mirror!rs
  4.  
  5. Submitted by: emoryu1!arnold (Arnold D. Robbins)
  6. Mod.sources: Volume 8, Issue 7
  7. Archive-name: se/Part07
  8.  
  9.  
  10. Here is the second release of the Georgia Tech Screen Editor, 'se'.
  11. There were enough changes that a whole new posting is warranted.
  12.  
  13. Major Changes:
  14.     All Georgia Tech specific stuff removed.
  15.     It understands window size changes on 4.3BSD and ATT Unix PC/3B1
  16.     Support for the shared library on the ATT Unix PC/3B1
  17.     Considerable source code reorganization in certain files.
  18.  
  19. Enjoy,
  20.  
  21. Arnold Robbins
  22.  
  23. #! /bin/sh
  24. # This is a shell archive, meaning:
  25. # 1. Remove everything above the #! /bin/sh line.
  26. # 2. Save the resulting text in a file.
  27. # 3. Execute the file with /bin/sh (not csh) to create the files:
  28. #    o
  29. #    o-
  30. #    oa
  31. #    oc
  32. #    od
  33. #    of
  34. #    og
  35. #    oh
  36. #    oi
  37. #    ok
  38. #    ol
  39. #    olm
  40. #    om
  41. #    os
  42. #    ot
  43. #    ou
  44. #    ov
  45. #    ow
  46. #    ox
  47. #    oy
  48. #    oz
  49. #    p
  50. #    pat
  51. #    patex
  52. #    q
  53. #    quote
  54. #    r
  55. #    rpt
  56. #    s
  57. #    scan
  58. #    serc
  59. #    shell
  60. #    specl
  61. #    t
  62. #    termchar
  63. #    tilde
  64. #    u
  65. #    v
  66. #    w
  67. #    x
  68. #    y
  69. #    z
  70. export PATH; PATH=/bin:$PATH
  71. if test ! -d 'se_h'
  72. then
  73.     echo shar: creating directory "'se_h'"
  74.     mkdir 'se_h'
  75. fi
  76. echo shar: entering directory "'se_h'"
  77. cd 'se_h'
  78. echo shar: extracting "'o'" '(615 characters)'
  79. if test -f 'o'
  80. then
  81.     echo shar: will not over-write existing file "'o'"
  82. else
  83. cat << \SHAR_EOF > 'o'
  84.         o -- Option
  85.  
  86.         The "o" (option) command allows any  of several variables  that
  87.         affect  the  editor's  behavior  to   be  set  or  tested.  The
  88.         behavior of the "o"  command depends upon what is  typed  after
  89.         the "o".
  90.  
  91.         To  find out about  specific options, type "hoa", "hoc", "hod",
  92.         "hof", "hog", "hoh", "hoi", "hok", "hol", "holm", "hom", "hos",
  93.     "hot", "hou", "hov", "how", "hox", "hoy", "hoz", or "ho-".
  94.  
  95.         To  see how to set options with the  command that invokes 'se',
  96.         type "hargs".
  97.  
  98.         To return to the command directory, type "hcomdir".
  99. SHAR_EOF
  100. fi # end of overwriting check
  101. echo shar: extracting "'o-'" '(830 characters)'
  102. if test -f 'o-'
  103. then
  104.     echo shar: will not over-write existing file "'o-'"
  105. else
  106. cat << \SHAR_EOF > 'o-'
  107.         o-  -- Option - (dash)
  108.  
  109.                default range             syntax
  110.                   1,$                     o-[line number]
  111.  
  112.         The "-" option controls the placement on the screen of  a  row
  113.         of dashes, which normally is off the screen above the top line
  114.         or  hiding  behind  the  bottom line of the help display.  The
  115.         "window" through which you look at the edit buffer is the por-
  116.         tion of the screen BELOW the  row  of  dashes  but  above  the
  117.         command  line  (when  it exists) or status line at the bottom.
  118.         "o-" alone puts the row of dashes above  the  top  line;  "o-"
  119.         followed  by a SINGLE TERM line number puts it in place of the
  120.         line referred to on the screen, if possible.
  121.  
  122.         For general information about the option command, type "ho".
  123. SHAR_EOF
  124. fi # end of overwriting check
  125. echo shar: extracting "'oa'" '(876 characters)'
  126. if test -f 'oa'
  127. then
  128.     echo shar: will not over-write existing file "'oa'"
  129. else
  130. cat << \SHAR_EOF > 'oa'
  131.         oa -- Option Absolute
  132.  
  133.                default range             syntax
  134.                    1,$                     oa
  135.  
  136.         "oa" toggles the Absolute line numbers flag, which  determines
  137.         whether  the numbers in the left margin shall be absolute line
  138.         numbers, or the (usually capital) letters that refer to  lines
  139.         by  the  position  at  which  they  are being displayed on the
  140.         screen.  In any case, the current line is always shown as  "."
  141.         (with  the "->" arrow to make it easy to find), the first line
  142.         in the buffer is labeled "1", and  the  last,  "$"  (when  not
  143.         ".").   Lines  can  be  referred  to  by  letter ONLY when the
  144.         letters appear in the left margin.
  145.  
  146.         For general information about the option command, type "ho".
  147.         See also "hln" for how lines can be referred to in commands.
  148. SHAR_EOF
  149. fi # end of overwriting check
  150. echo shar: extracting "'oc'" '(706 characters)'
  151. if test -f 'oc'
  152. then
  153.     echo shar: will not over-write existing file "'oc'"
  154. else
  155. cat << \SHAR_EOF > 'oc'
  156.         oc -- Option Case
  157.  
  158.                default range             syntax
  159.                    1,$                     oc
  160.  
  161.         The "c" (case) option toggles the same case mapping flag  that
  162.         is  toggled  by the CTRL-Z control character, but also changes
  163.         the marginal line letters to lower case (or back to upper), so
  164.         that typing a shifted letter will still refer to a  line,  and
  165.         typing an unshifted letter will do for a command letter.  This
  166.         is  useful for handling large amounts of upper case text, such
  167.         as Fortran programs.
  168.  
  169.         For general information about the option command, type "ho".
  170.         See also "hoa".
  171.         Fortraners see also "hof".
  172. SHAR_EOF
  173. fi # end of overwriting check
  174. echo shar: extracting "'od'" '(785 characters)'
  175. if test -f 'od'
  176. then
  177.     echo shar: will not over-write existing file "'od'"
  178. else
  179. cat << \SHAR_EOF > 'od'
  180.         od -- Option Delete
  181.  
  182.                default range             syntax
  183.                   1,$                     od[<|>]
  184.  
  185.         The "d" option is for Delete direction.  Typing "od<" fixes it
  186.         so  that  after  you  give  a "d" command, the line BEFORE the
  187.         group of lines deleted becomes the current line  (.).   Typing
  188.         "od>"  resets  the  normal behavior, in which the current line
  189.         pointer is always positioned AFTER the group of lines  deleted
  190.         by  the "d" command, if possible (Deleting the last line makes
  191.         the new last  line  the  current  line).   Typing  "od"  alone
  192.         queries  the  delete  direction flag, causing ">" or "<" to be
  193.         displayed.
  194.  
  195.         For general information about the option command, type "ho".
  196. SHAR_EOF
  197. fi # end of overwriting check
  198. echo shar: extracting "'of'" '(579 characters)'
  199. if test -f 'of'
  200. then
  201.     echo shar: will not over-write existing file "'of'"
  202. else
  203. cat << \SHAR_EOF > 'of'
  204.  
  205.         of -- Option Fortran
  206.  
  207.                default range             syntax
  208.                   1,$                      of
  209.  
  210.         Typing  "of"  turns  on  a  package  of  options  considered
  211.         convenient for editing Fortran.  The warning column  is  set
  212.         to  72,  and tab spacing is set to 7 +3 so that tabbing once
  213.         gets you to column 7.   Tab  expansion  is  also  turned  on
  214.         (XTABS).   To  undo  "of" it is necessary to type "ot+3" and
  215.         "ox".
  216.  
  217.         For general information about the option command, type "ho".
  218.         See also "oa".
  219.  
  220. SHAR_EOF
  221. fi # end of overwriting check
  222. echo shar: extracting "'og'" '(719 characters)'
  223. if test -f 'og'
  224. then
  225.     echo shar: will not over-write existing file "'og'"
  226. else
  227. cat << \SHAR_EOF > 'og'
  228.  
  229.         og -- Option Global
  230.  
  231.                default range             syntax
  232.                   1,$                     og
  233.  
  234.         The "g" option controls the behavior of the Substitute  command
  235.         when it  is under the control of a Global  command.  Initially,
  236.         if a substitute inside a global command fails, se will not con-
  237.         tinue with  the rest of the lines  which might succeed. If "og"
  238.         is given, then  the global substitute  will continue, and lines
  239.         which failed will not be affected. Succesive "og" commands will
  240.         toggle this behavior.  An explanatory message is placed in  the
  241.         status line.
  242.  
  243.         For general information about the option command, type "ho".
  244. SHAR_EOF
  245. fi # end of overwriting check
  246. echo shar: extracting "'oh'" '(774 characters)'
  247. if test -f 'oh'
  248. then
  249.     echo shar: will not over-write existing file "'oh'"
  250. else
  251. cat << \SHAR_EOF > 'oh'
  252.  
  253.         oh -- Option Hardware Insert/Delete
  254.  
  255.               default range             syntax
  256.                  1,$                     oh
  257.  
  258.         The   "h"   option   controls   the  use  of  hardware  line
  259.         insert/delete on terminals that have  that  capability.   By
  260.         default,  line  insert/delete will be used if available.  It
  261.         is occasionally useful to turn this option  off  when  using
  262.         the editor on a terminal which can't keep up, or if the com-
  263.         munications  lines may be scrambling the control characters.
  264.         Each successive "oh" merely  toggles  a  switch  within  the
  265.         editor.   An  explanatory  message  is  placed in the status
  266.         line.
  267.  
  268.         For general information about the option command, type "ho".
  269. SHAR_EOF
  270. fi # end of overwriting check
  271. echo shar: extracting "'oi'" '(537 characters)'
  272. if test -f 'oi'
  273. then
  274.     echo shar: will not over-write existing file "'oi'"
  275. else
  276. cat << \SHAR_EOF > 'oi'
  277.  
  278.         oi -- Option Indent
  279.  
  280.                 default range           syntax
  281.                     1, $                  oi[a | <indent>]
  282.  
  283.         "oi" selects the indent value for lines  inserted with "a" and
  284.         "i" commands (initially 1). "a" selects auto-indent which sets
  285.         the indent to the value  which equals the indent of the previ-
  286.         ous line.  If  neither  "a" nor  "<indent>" is  specified, the
  287.         current value of indent is displayed.
  288.  
  289.         For general information about the option command, type "ho".
  290. SHAR_EOF
  291. fi # end of overwriting check
  292. echo shar: extracting "'ok'" '(460 characters)'
  293. if test -f 'ok'
  294. then
  295.     echo shar: will not over-write existing file "'ok'"
  296. else
  297. cat << \SHAR_EOF > 'ok'
  298.         ok -- Option OK
  299.  
  300.         default range                    syntax
  301.           1,$                             ok
  302.  
  303.         Typing  "ok"  simply tests the flag that indicates whether the
  304.         edit buffer has been saved since the last change was  made  to
  305.         it.   "Saved"  or  "Not saved" is accordingly displayed in the
  306.         remark field at the bottom of the screen.
  307.  
  308.         To return to the option directory, type "ho".
  309.         See also "hq".
  310. SHAR_EOF
  311. fi # end of overwriting check
  312. echo shar: extracting "'ol'" '(646 characters)'
  313. if test -f 'ol'
  314. then
  315.     echo shar: will not over-write existing file "'ol'"
  316. else
  317. cat << \SHAR_EOF > 'ol'
  318.         ol -- Option Line
  319.  
  320.                default range             syntax
  321.                  1,$                      ol[$ | . | # | BLANK]
  322.  
  323.         The  "l"  option  is the Line number monitoring option. Typing
  324.         "l" followed by "$" constantly displays the last  line  number
  325.         in the file (current length of the file).  Typing "l" followed
  326.         by  "."   constantly  displays  the current line number.  This
  327.         usually make sense only in conjunction with the  "oa"  option,
  328.         that uses letters for line names.
  329.  
  330.         For general information about the option command, type "ho".
  331.         See also:  "hoa" and "hequal".
  332. SHAR_EOF
  333. fi # end of overwriting check
  334. echo shar: extracting "'olm'" '(664 characters)'
  335. if test -f 'olm'
  336. then
  337.     echo shar: will not over-write existing file "'olm'"
  338. else
  339. cat << \SHAR_EOF > 'olm'
  340.  
  341.         olm -- Option Line Margin
  342.  
  343.         default range                           syntax
  344.            1,$                                   olm[<col>]
  345.         
  346.         Sets the left margin to <col>  which must be a positive integer.
  347.         This shifts the entire screen to  the left; the characters  that
  348.         were in columns 1  through <col> - 1  will  not be visible.  You
  349.         may continue editing in the normal fashion. To reset your screen
  350.         to normal, enter the command "olm 1".  If <col> is omitted,  the
  351.         current left margin column is displayed in the status line.
  352.  
  353.         For general information about the options command, type "ho".
  354. SHAR_EOF
  355. fi # end of overwriting check
  356. echo shar: extracting "'om'" '(733 characters)'
  357. if test -f 'om'
  358. then
  359.     echo shar: will not over-write existing file "'om'"
  360. else
  361. cat << \SHAR_EOF > 'om'
  362.  
  363.         om -- Option Mail
  364.  
  365.                default range             syntax
  366.                   1,$                     om
  367.  
  368.         "om" is an option which allows the user control   over  whether
  369.         or  not he will  be  notified  about pending mail.  Typing "om"
  370.         simply toggles the switch controlling notification.
  371.             The default is for the editor to notify the  user about his
  372.         mail.  The  mail  box  which the editor uses is taken from  the
  373.         environment variable MAIL. If the mail box exists, but is empty
  374.         the user will not be notified.
  375.  
  376.         To  read your mail, use a shell escape on whichever of the fol-
  377.         lowing programs is appropriate:
  378.  
  379.                 Mail     msg     mail
  380. SHAR_EOF
  381. fi # end of overwriting check
  382. echo shar: extracting "'os'" '(613 characters)'
  383. if test -f 'os'
  384. then
  385.     echo shar: will not over-write existing file "'os'"
  386. else
  387. cat << \SHAR_EOF > 'os'
  388.  
  389.         os --- option source
  390.  
  391.         default range           syntax
  392.            1,$       s[as | c | d | data | f | h | n | nr | nroff | p | r | s]
  393.         
  394.         This option sets other options for case, tabs, etc.
  395.             as, s   -- assembler files   c          -- C files
  396.             d, data -- data files        f          -- fortran files
  397.             h       -- header files      n,nr,nroff -- nroff source files
  398.             p       -- pascal files      r          -- ratfor files
  399.         
  400.         See the manual page for details.
  401.  
  402.         For general information about the options command, type "ho".
  403. SHAR_EOF
  404. fi # end of overwriting check
  405. echo shar: extracting "'ot'" '(710 characters)'
  406. if test -f 'ot'
  407. then
  408.     echo shar: will not over-write existing file "'ot'"
  409. else
  410. cat << \SHAR_EOF > 'ot'
  411.         ot -- Option Tab
  412.  
  413.         range                        syntax
  414.          1,$                ot[[[+]integer [+]integer]]
  415.  
  416.  
  417.         "ot+3" sets the spacing between tab stops.  The  default  value
  418.         when  'se'  comes  up  is 3.  Typing "ot" by itself causes the
  419.         current value of the parameter to be displayed.  As an example
  420.         of how tabs are spaced out, if ot+6 is in effect, tab stops are
  421.         at 7, 13, 19, etc.
  422.         Variable  tabs can be set by typing "ot 5 13 24 ..  ".  if you
  423.         do not prefer equally spaced ones.
  424.  
  425.         See also "hof".
  426.         For general information about the option command, type "ho".
  427.         For more about the use of tab stops, type "hmotion".
  428. SHAR_EOF
  429. fi # end of overwriting check
  430. echo shar: extracting "'ou'" '(823 characters)'
  431. if test -f 'ou'
  432. then
  433.     echo shar: will not over-write existing file "'ou'"
  434. else
  435. cat << \SHAR_EOF > 'ou'
  436.         ou -- Option Unprintable
  437.  
  438.                default range             syntax
  439.                  1,$                     ou[character]
  440.  
  441.         The  "u"  option  is  for  monitoring  unprintable characters.
  442.         Typing "ou" by itself will return the current  character  used
  443.         to display unprintable characters.  If it is ' ' (blank), then
  444.         unprintable  characters  are  not  checked and may mess up the
  445.         display.  Typing "oux" where "x" is a printable character will
  446.         turn on  character  checking  and  display  "x"  everytime  an
  447.         unprintable  character is encountered.  Unprintable characters
  448.         are not disturbed in the file, but can be "edited" out.
  449.  
  450.         See also hccmisc for refreshing the display.
  451.  
  452.         For general information about the option command, type "ho".
  453. SHAR_EOF
  454. fi # end of overwriting check
  455. echo shar: extracting "'ov'" '(575 characters)'
  456. if test -f 'ov'
  457. then
  458.     echo shar: will not over-write existing file "'ov'"
  459. else
  460. cat << \SHAR_EOF > 'ov'
  461.         ov -- oVerlay Option
  462.  
  463.                default range             syntax
  464.                   1,$                    ov[integer]
  465.  
  466.         The "v" option is the  overlay  column  number.   Typing  "ov"
  467.         followed  by  a  space  and  a number sets the column that the
  468.         cursor will be positioned at when  issuing  the  "v"  command.
  469.         Typing "ov $" will position the cursor at the end of the line.
  470.         Typing "ov" by itself will display the current value.
  471.  
  472.         See also hmotion.
  473.  
  474.         For general information about the option command, type "ho".
  475. SHAR_EOF
  476. fi # end of overwriting check
  477. echo shar: extracting "'ow'" '(658 characters)'
  478. if test -f 'ow'
  479. then
  480.     echo shar: will not over-write existing file "'ow'"
  481. else
  482. cat << \SHAR_EOF > 'ow'
  483.         ow -- Option Warning
  484.  
  485.                default range              syntax
  486.                  1,$                      ow[integer]
  487.  
  488.         The "w" option is the  Warning  column  number.   Typing  "ow"
  489.         followed by a number sets the warning column threshold; simply
  490.         typing  "ow"  causes  its current value to be displayed.  When
  491.         you are about to type into a column of equal or greater number
  492.         than the warning column, the number  of  the  column  you  are
  493.         about  to type into is displayed on the bottom line along with
  494.         the string "col  ".
  495.  
  496.         For general information about the option command, type "ho".
  497. SHAR_EOF
  498. fi # end of overwriting check
  499. echo shar: extracting "'ox'" '(624 characters)'
  500. if test -f 'ox'
  501. then
  502.     echo shar: will not over-write existing file "'ox'"
  503. else
  504. cat << \SHAR_EOF > 'ox'
  505.             ox -- toggle tab compression/expansion
  506.  
  507.             default range           syntax
  508.                 .                       ox
  509.  
  510.  
  511.             "ox" turns compression of tabs on or off. If a file
  512.             has tabs in it, they will be  expanded  if compres-
  513.             sion is on. Otherwise they will be left alone,  and
  514.             will show up as the default unprintable character.
  515.  
  516.             The message "XTABS" will be displayed in the status
  517.             line if tab compression is on.
  518.  
  519.             Type "hdir" to go back to the general help directory.
  520.             Type "ho" for help on the option command.
  521. SHAR_EOF
  522. fi # end of overwriting check
  523. echo shar: extracting "'oy'" '(749 characters)'
  524. if test -f 'oy'
  525. then
  526.     echo shar: will not over-write existing file "'oy'"
  527. else
  528. cat << \SHAR_EOF > 'oy'
  529.  
  530.         oy --- option encrYption 
  531.  
  532.         default range                                   syntax
  533.            1,$                                            oy[key]
  534.         
  535.         This option allows you to edit encrypted files. oy followed by a key
  536.         will cause e, r, and w, commands to encrypt  and decrypt files using
  537.         crypt(1).  oy will toggle the current  encryption setting.  If there
  538.         is  no current key, se will ask you for one. If encryption is turned
  539.         on, it will be  turned off.   Encryption in indicated by the message
  540.         "ENCRYPT" in the status line. The key is never shown on your screen.
  541.  
  542.         Type "ho" for help on the option command.
  543.         Type "hdir" to go back to the general help directory.
  544. SHAR_EOF
  545. fi # end of overwriting check
  546. echo shar: extracting "'oz'" '(447 characters)'
  547. if test -f 'oz'
  548. then
  549.     echo shar: will not over-write existing file "'oz'"
  550. else
  551. cat << \SHAR_EOF > 'oz'
  552.  
  553.         oz -- option sleep (zzzz's)
  554.  
  555.         default range           syntax
  556.           1,$                     oz
  557.  
  558.         If you are running "sh", this option has absolutely no effect at
  559.         all.  If you are running the "csh", this option will suspend  se
  560.         in the background.  Se will issue  a warning  if  the buffer has
  561.         not been saved, when this is done.
  562.  
  563.         For general information about the option command, type "ho".
  564. SHAR_EOF
  565. fi # end of overwriting check
  566. echo shar: extracting "'p'" '(642 characters)'
  567. if test -f 'p'
  568. then
  569.     echo shar: will not over-write existing file "'p'"
  570. else
  571. cat << \SHAR_EOF > 'p'
  572.           p    -- Print/Previous screen command
  573.  
  574.                default range           syntax
  575.                see below               [range] p
  576.  
  577.         "p"  prints  a  range of lines or the previous screen (when no
  578.         range is provided).  The line pointer is set to the last  line
  579.         printed  (a  new  screen  may  be printed).  When the previous
  580.         screen is printed, the first line on the  current  screen  be-
  581.         comes  the  line  pointer, usually the last line on the screen
  582.         (exception is when the first page is printed).
  583.  
  584.         To return to the command directory, type "hcomdir."
  585.         See also "hspecl"
  586. SHAR_EOF
  587. fi # end of overwriting check
  588. echo shar: extracting "'pat'" '(930 characters)'
  589. if test -f 'pat'
  590. then
  591.     echo shar: will not over-write existing file "'pat'"
  592. else
  593. cat << \SHAR_EOF > 'pat'
  594.         A PATTERN is a string of characters that specifies  a  set  of
  595.         possible  strings  of  characters  that  are said to MATCH the
  596.         pattern.  Most characters in patterns  stand  for  themselves,
  597.         but   there   are   metacharacters:   "."   that  matches  any
  598.         character, "*" that along with the previous character, matches
  599.         any number of repetitions of  it  (including  none),  "^"  for
  600.         beginning  of  line,  "$"  for  end of line, and characters in
  601.         brackets "[]" to match any of  the  characters.   The  special
  602.         sense  of  metacharacters  and  of the delimiters in which the
  603.         pattern is enclosed can always be  turned  off  by  preceeding
  604.         them with the escape character "\".
  605.  
  606.         See also "hs", "hg", "hx" for uses of patterns.
  607.         For the use of patterns in line numbers, type "hscan".
  608.         For examples of pattern matches, type "hpatex".
  609. SHAR_EOF
  610. fi # end of overwriting check
  611. echo shar: extracting "'patex'" '(485 characters)'
  612. if test -f 'patex'
  613. then
  614.     echo shar: will not over-write existing file "'patex'"
  615. else
  616. cat << \SHAR_EOF > 'patex'
  617.          PATTERN       MATCHES     DOESN'T MATCH
  618.  
  619.         "test"         "testfoo"   "foobar"
  620.         "test$"        "footest"   "test "
  621.         "$"            anything
  622.         "ab*c"         "abbbbbbc"  "bbbbbbc"
  623.         "ab*c"         "ac cur"    "ab*c"
  624.         "^abc"         "abcac"     "bcabc"
  625.         "abc^"         "abc^d"     "ab*c"
  626.         "a[bcd]*e"     "abddceab"  "eeeaaa"
  627.         "a[bcd]*e"     "aaaeee"    "bcdbcde"
  628.  
  629.         For general info about patterns, type "hpat".
  630. SHAR_EOF
  631. fi # end of overwriting check
  632. echo shar: extracting "'q'" '(514 characters)'
  633. if test -f 'q'
  634. then
  635.     echo shar: will not over-write existing file "'q'"
  636. else
  637. cat << \SHAR_EOF > 'q'
  638.           q   --  Quit command
  639.  
  640.                default range           syntax
  641.                    n/a                    q
  642.  
  643.         "q" is used to quit the screen editor  and  return  to  system
  644.         command  level.  If changes have been made to the buffer since
  645.         the last write ("w"), you will be asked if you really want  to
  646.         quit.   If so, just do another "q" command (RETURN is all that
  647.         required).
  648.  
  649.  
  650.         To return to the command directory, type "hcomdir."
  651.         See also:  "hok".
  652. SHAR_EOF
  653. fi # end of overwriting check
  654. echo shar: extracting "'quote'" '(340 characters)'
  655. if test -f 'quote'
  656. then
  657.     echo shar: will not over-write existing file "'quote'"
  658. else
  659. cat << \SHAR_EOF > 'quote'
  660.  
  661.         ' --- global on markname
  662.  
  663.         default range                   syntax
  664.           1,$                             '<m>command
  665.         
  666.         Similar to the "g" prefix, except that "command" is performed
  667.         for all lines in the range that have the mark name <m>.
  668.  
  669.         To return to the command directory, type "hcomdir".
  670. SHAR_EOF
  671. fi # end of overwriting check
  672. echo shar: extracting "'r'" '(500 characters)'
  673. if test -f 'r'
  674. then
  675.     echo shar: will not over-write existing file "'r'"
  676. else
  677. cat << \SHAR_EOF > 'r'
  678.           r    -- Read command
  679.  
  680.                default range           syntax
  681.                       .           r [file name]
  682.         "r" is used to read a file into  the  buffer  at  (after)  the
  683.         named  place  (range field).  If no file name is provided, the
  684.         current  file name (as  identified by the "f" command) is used.
  685.         Se expand environment variables occuring in file names.
  686.  
  687.  
  688.         To return to the command directory, type "hcomdir."
  689.         See also:  "hf" and "he".
  690. SHAR_EOF
  691. fi # end of overwriting check
  692. echo shar: extracting "'rpt'" '(523 characters)'
  693. if test -f 'rpt'
  694. then
  695.     echo shar: will not over-write existing file "'rpt'"
  696. else
  697. cat << \SHAR_EOF > 'rpt'
  698.         The CTRL-F ("Funny Return") key  can  be  used  for  repeating
  699.         lines while in Append Mode or in Command Mode.  Typing it will
  700.         cause   the   line  to  be  terminated  without  chopping  any
  701.         characters off, and will set a flag that will inhibit  erasure
  702.         of  the  command  after it is completed, so that the same line
  703.         may be easily re- entered.
  704.  
  705.  
  706.         Type "htermchar" for info about other termination characters.
  707.         Type "habt" to see what CTRL-F does in overlay mode.
  708. SHAR_EOF
  709. fi # end of overwriting check
  710. echo shar: extracting "'s'" '(776 characters)'
  711. if test -f 's'
  712. then
  713.     echo shar: will not over-write existing file "'s'"
  714. else
  715. cat << \SHAR_EOF > 's'
  716.           s    -- Substitute command
  717.  
  718.                default range           syntax
  719.                    .,.           s/change-this/to-this[/][g]
  720.  
  721.         The pattern "change-this" is matched on each line  within  the
  722.         range  and the string "to-this" is substituted for it.  If [g]
  723.         is used, all occurrences  of  the  "change-this"  pattern  are
  724.         changed.   If  "change-this" is empty, the most recent pattern
  725.         from this command (e.g.  within the range field) or a previous
  726.         command is used.  If "to-this" is a '%', the previous replace-
  727.         ment pattern is used. The "/" may be any character. The trail-
  728.         ing delimiter is optional.
  729.  
  730.         To return to the command directory, type "hcomdir."
  731.         See also:  "hln" and "hpat".
  732. SHAR_EOF
  733. fi # end of overwriting check
  734. echo shar: extracting "'scan'" '(927 characters)'
  735. if test -f 'scan'
  736. then
  737.     echo shar: will not over-write existing file "'scan'"
  738. else
  739. cat << \SHAR_EOF > 'scan'
  740.                      For line number syntax, type "hln".
  741.                    For details about PATTERNs, type "hpat".
  742.  
  743.         A line number term consisting of  a  PATTERN  between  slashes
  744.         causes  a  scan to begin with the line after the current line.
  745.         If the last line is encountered, the scan continues with  line
  746.         1.   The  current  line  is the last to be examined.  The line
  747.         referred to is the first line encountered  in  the  scan  that
  748.         contains  a  match  for  the  pattern.   If  the entire buffer
  749.         contains no match, then an error is flagged.  If  the  pattern
  750.         is  enclosed  in  question marks,  the  scan is in the reverse
  751.         direction and begins with the line  just  before  the  current
  752.         line,  and  wraps  around  to  the  last  line after line 1 is
  753.         examined.  ">" and "<" mark name searches proceed in the  same
  754.         wraparound fashion.
  755. SHAR_EOF
  756. fi # end of overwriting check
  757. echo shar: extracting "'serc'" '(617 characters)'
  758. if test -f 'serc'
  759. then
  760.     echo shar: will not over-write existing file "'serc'"
  761. else
  762. cat << \SHAR_EOF > 'serc'
  763.         serc -- $HOME/.serc -- Se Initialization File
  764.         
  765.         The file $HOME/.serc, if it exists, is read when se starts up.
  766.         If a line begins with a '#', it is treated as a comment and is
  767.         ignored.  It is useful for  setting  personal options  without
  768.         the user having to type them in  on the command line  or use a
  769.         special shell file or alias. Here is a sample .serc file:
  770.  
  771.             # turn on unix mode, tabs every 8 columns, auto indent
  772.             opu
  773.             ot+8
  774.             oia
  775.  
  776.     Command line options ALWAYS override any options set by commands
  777.     in the .serc file.
  778. SHAR_EOF
  779. fi # end of overwriting check
  780. echo shar: extracting "'shell'" '(865 characters)'
  781. if test -f 'shell'
  782. then
  783.     echo shar: will not over-write existing file "'shell'"
  784. else
  785. cat << \SHAR_EOF > 'shell'
  786.  
  787.         ! --- shell escape
  788.  
  789.         default range                            syntax
  790.                 1,$                      ![<Unix command>]
  791.  
  792.         The user's choice of shell is taken from the $SHELL environment vari-
  793.         able and used to execute <Unix command> if it is present.  Otherwise,
  794.         an  interactive shell is created. A leading ! is replaced by the pre-
  795.         vious  shell  command.  Thus !!  executes  the previous  command.  An
  796.         unescaped  % is replaced  by  the saved  file name. An expanded shell
  797.         command is echoed  before it is  executed. After an interactive shell
  798.         exits, the screen is immediately  redrawn. If a  command was run, the
  799.         results are left on the  screen,  and the user must  type a return to
  800.         redraw the editing window.
  801.  
  802.         To return to the command directory, type "hcomdir".
  803. SHAR_EOF
  804. fi # end of overwriting check
  805. echo shar: extracting "'specl'" '(737 characters)'
  806. if test -f 'specl'
  807. then
  808.     echo shar: will not over-write existing file "'specl'"
  809. else
  810. cat << \SHAR_EOF > 'specl'
  811.         The "=" command displays the last  line  number  in  the  line
  812.         number  list  (default  ".")  as  a  number.  For example, "="
  813.         prints the line number of the current line, or "$=" prints the
  814.         line number of the last line (the number of lines).
  815.  
  816.         The ":"  command, with no preceeding line numbers,  moves  the
  817.         window  so that the next screenful of text is visible.  With a
  818.         line number, it makes the window begin at the referenced line.
  819.         The top line in the window becomes the current line.
  820.  
  821.         For general information about commands, type "hcom".
  822.         For a description of command syntax, type "hcomsyn".
  823.         To see a directory of the other commands, type "hcomdir".
  824. SHAR_EOF
  825. fi # end of overwriting check
  826. echo shar: extracting "'t'" '(361 characters)'
  827. if test -f 't'
  828. then
  829.     echo shar: will not over-write existing file "'t'"
  830. else
  831. cat << \SHAR_EOF > 't'
  832.  
  833.           t    -- To command
  834.                default range           syntax
  835.                          .,.           from-here,to-here t after-here
  836.  
  837.         Reproduce the block of lines identified by the range field of
  838.         the command and place them after the named line.
  839.  
  840.  
  841.         To return to the command directory, type "hcomdir."
  842.         See also:  "hm".
  843. SHAR_EOF
  844. fi # end of overwriting check
  845. echo shar: extracting "'termchar'" '(560 characters)'
  846. if test -f 'termchar'
  847. then
  848.     echo shar: will not over-write existing file "'termchar'"
  849. else
  850. cat << \SHAR_EOF > 'termchar'
  851.                     Command Terminating Control Characters
  852.  
  853.         The  Carriage Return character terminates a command, but first
  854.         erases any characters at and  to  the  right  of  the  cursor.
  855.         CTRL-V,  on  the other hand, skips the cursor to the right end
  856.         of the line, then terminates it.  The "Funny Return" character
  857.         CTRL-F serves different purposes depending on what routine  is
  858.         soliciting the command.
  859.  
  860.         For more about CTRL-F, see "habt" and "hrpt".
  861.         The general control character directory is "hcc".
  862. SHAR_EOF
  863. fi # end of overwriting check
  864. echo shar: extracting "'tilde'" '(349 characters)'
  865. if test -f 'tilde'
  866. then
  867.     echo shar: will not over-write existing file "'tilde'"
  868. else
  869. cat << \SHAR_EOF > 'tilde'
  870.  
  871.         ~ --- exclude on markname
  872.  
  873.         default range                   syntax
  874.           1,$                             ~<m>command
  875.         
  876.         Similar to the "x" prefix, except that  "command" is performed
  877.         for all lines in the range that do not have the mark name <m>.
  878.  
  879.         To return to the command directory, type "hcomdir".
  880. SHAR_EOF
  881. fi # end of overwriting check
  882. echo shar: extracting "'u'" '(804 characters)'
  883. if test -f 'u'
  884. then
  885.     echo shar: will not over-write existing file "'u'"
  886. else
  887. cat << \SHAR_EOF > 'u'
  888.      u    -- Undo command.
  889.  
  890.            default range                 syntax
  891.                 .                         u[d]
  892.  
  893.         1.  "u" is used to undo modifications to  a  line  immediately
  894.         after  changes  are  made.  E.g.  if you substituted "pat" for
  895.         "hat" in a line, to reverse that operation immediately, simply
  896.         type "u" (RETURN).
  897.  
  898.         2.  "ud" is used to restore a group of lines  that  have  been
  899.         delete  E.g.   if  "n,md"  deletes lines n thru m, then if you
  900.         position the curser to line n-1 and  issue  "ud"  the  deleted
  901.         lines  will  appear.   (Or you can set the od toggle to od< so
  902.         that the line pointer is automatically set to n-1.
  903.  
  904.         To return to the command directory, type "hcomdir."
  905.         See also:  "hd" and "hod".
  906. SHAR_EOF
  907. fi # end of overwriting check
  908. echo shar: extracting "'v'" '(432 characters)'
  909. if test -f 'v'
  910. then
  911.     echo shar: will not over-write existing file "'v'"
  912. else
  913. cat << \SHAR_EOF > 'v'
  914.           v    -- oVerlay command
  915.  
  916.                default range           syntax
  917.                     .,.                   v
  918.  
  919.         Inline editing mode is entered using this command.  The curser
  920.         is  positioned  at the column set by the "ov" command.  Inline
  921.         editing may now be performed using control characters.
  922.  
  923.         To return to the command directory, type "hcomdir."
  924.         See also:  "hcc" and "hmotion".
  925. SHAR_EOF
  926. fi # end of overwriting check
  927. echo shar: extracting "'w'" '(735 characters)'
  928. if test -f 'w'
  929. then
  930.     echo shar: will not over-write existing file "'w'"
  931. else
  932. cat << \SHAR_EOF > 'w'
  933.           w    -- Write command
  934.  
  935.                default range                syntax
  936.                          1,$        w[! | + | >] [file name]
  937.  
  938.         "w"  writes  the  buffer  to a file.  If issued without a file
  939.         name the current file name is used.  If "f" was used to change
  940.         the file name or if a file name was given, a new file will  be
  941.         created and written unless the file already exits which causes
  942.         a  warning.   The warning may be bypassed using "w!".  Options
  943.         [+] or [>] mean to append to the file instead of writing  over
  944.         it. Se expands environment variables occuring in file names.
  945.  
  946.         To return to the command directory, type "hcomdir."
  947.         See also:   "hf", "hok".
  948. SHAR_EOF
  949. fi # end of overwriting check
  950. echo shar: extracting "'x'" '(579 characters)'
  951. if test -f 'x'
  952. then
  953.     echo shar: will not over-write existing file "'x'"
  954. else
  955. cat << \SHAR_EOF > 'x'
  956.  
  957.           x    -- Global exclude on pattern
  958.  
  959.                default range           syntax
  960.                          1,$           x/pattern/command
  961.  
  962.         "x"  is  used  to perform an editing command on all lines that
  963.         do not match the "pattern". "pattern" is any legal pattern and
  964.         command is an editor command.  The "g" command is the converse
  965.         of "x" and performs the command on all lines that do match the
  966.         pattern.  The "/" may be any character.
  967.  
  968.         To return to the command directory, type "hcomdir."
  969.         See also:  "hg" and "hpat".
  970. SHAR_EOF
  971. fi # end of overwriting check
  972. echo shar: extracting "'y'" '(430 characters)'
  973. if test -f 'y'
  974. then
  975.     echo shar: will not over-write existing file "'y'"
  976. else
  977. cat << \SHAR_EOF > 'y'
  978.           y    -- translYterate command
  979.  
  980.                default range           syntax
  981.                    .,.           y/from-range/to-range[/]
  982.  
  983.         Characters   in   the  "from-range"  are  converted  to  their
  984.         corresponding characters in the "to-range".  The "/" may be an
  985.         character.  The trailing delimiter is optional.
  986.  
  987.         To return to the command directory, type "hcomdir."
  988.         See also:  "hs".
  989. SHAR_EOF
  990. fi # end of overwriting check
  991. echo shar: extracting "'z'" '(679 characters)'
  992. if test -f 'z'
  993. then
  994.     echo shar: will not over-write existing file "'z'"
  995. else
  996. cat << \SHAR_EOF > 'z'
  997.        z -- do special extended things
  998.  
  999.         default range               syntax
  1000.     lines must be given         line,line z <option> <stuff>
  1001.  
  1002.        The z command command is used for doing special extended
  1003.     things. Currently, the only option available is b, to  draw
  1004.     a box into the buffer. It works as follows:
  1005.  
  1006.          lin,lin zb<left>[,<right>][<char>]
  1007.  
  1008.     The two <lin>s  specify where in the buffer to put the  box,
  1009.     <left> and <right> tell which column to  which  column,  and
  1010.     the <char> is the character to use to draw the  box.  As  an
  1011.     example,
  1012.          .,.+4zb10,50*
  1013.     draws a box, OVER the text that is there. Try  it  on  some
  1014.     BLANK lines.
  1015. SHAR_EOF
  1016. fi # end of overwriting check
  1017. echo shar: done with directory "'se_h'"
  1018. cd ..
  1019. #    End of shell archive
  1020. exit 0
  1021.  
  1022.